﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using suirui.ZhuMu.Model;
using suirui.ZhuMu.Entity;
using suirui.ZhuMu.Entity.Entities;

namespace suirui.ZhuMu.Repositories
{
    public interface IUserRepository : IBaseRepository<User>
    {
        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <returns></returns>
        Task<PageData<User>> GetUserList(GetListByUserDto paramsDto);
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="user"></param>
        Task<bool> AddUser(User user);
        /// <summary>
        /// 更新用户信息
        /// </summary>
        /// <param name="user"></param>
        Task<bool> UpdateUser(User user);
    }
}
